{% extends "base.html" %}

{% block title %}添加新主题{% endblock %}


{% block head %}
<script type="text/javascript">
$(function() {

});

</script>
{% endblock %}

{% block left_content %}


    <form  action="/topic/add/" method="post">{% csrf_token %} 
      <div class="form">
        <div class="title">在{{group.name}}圈子发表新主题</div>	
		<input type="hidden" name="groupid" value="{{group.id}}"/>
		<p><label>标题：</label><input style="width:460px;" name="title" value="{{title}}"/></p>
        <p><textarea style="width:460px;height:200px;" name="content" class="corner">{{content}}</textarea></p>
		
		<p><input class="button corner" type="submit" value="提交">
		<font color=red>{{alert}}</font></p>	
		
        </div>

    </form>
	<div style="height:100;"></div>
{% endblock %}

{% block right_content %}
<h3><span class="sLeft">◇<a href="/group/{{group.id}}/">返回{{group.name}}圈子</span></a></h3>
{% endblock %}